<?php

namespace $namspace;

use think\Validate;


class $controller extends Validate
{
    protected $rule =   [
        // 'username'  => 'require|length:3,25|unique:user',
        // 'password'  => 'require',
    ];
    protected $message  =   [
        // 'username.require'      => '用户名不能为空',
        // 'username.length'       => '用户名在3到25个字符之间',
        // 'username.unique'       => '用户名不能重复',
        // 'password.require'      => '密码不能为空',
    ];
    protected $scene = [
        // 'add'  =>  ['username','password'],
        // 'edit'  =>  [],

    ];


}